package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;

import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Schema(description = "更新插槽下的slot值")
@Data
public class CreateOrUpdateSlotValue extends ProjectIdDTO {

    @NotBlank(message = ParamErrorConstants.NO_PROJECT_ID)
    private String projectId;

    @Schema(title = "slot的Id")
    private String slotId;

    @Schema(title = "property的id")
    private String propertyId;

    @Schema(title = "valueSpecification的id，id为空时创建，id不为空时更新")
    private String valueSpecificationId;

    @Schema(title = "属性值")
    private Object value;

}
